import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/less/index.less' // 全局样式
import router from '@/router';
import pinia from "@/store";
// import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/assets/icon/iconfont.css'; //使用iconfont图标
import '@/permission';
import TopNav from "@/views/Course/components/part/topNav/index.vue"
import ContentItem from "@/views/Course/components/part/contentItem/index.vue";
import TopChoose from "@/views/Course/components/part/topChoose/index.vue";


const app = createApp(App);
app.use(ElementPlus);
app.use(router);
app.use(pinia);
app.component(TopNav.name, TopNav)
app.component(ContentItem.name, ContentItem)
app.component(TopChoose.name, TopChoose)
// for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
//   app.component(key, component)
// }
app.mount('#app');

// createApp(App).mount('#app')
